<template>
  <div>
    <!-- 借款记录 -->
    <p class="title">{{$t('auditDetail.no76')}}</p>
    <el-table  class="mt10" :data="data"  stripe style="width: 100%" size="small">
        <el-table-column align="center" prop="approveTime" :label="$t('auditDetail.no72')">
        </el-table-column>
        <el-table-column align="center" prop="adminName" :label="$t('auditDetail.no73')">
        </el-table-column>
        <el-table-column align="center" prop="approveResultDesc" :label="$t('auditManage.no13')">
        </el-table-column>
        <el-table-column align="center" prop="notApproveReasonDesc" :label="$t('auditDetail.no23')">
          <template slot-scope="scope">
              <span>{{scope.row.notApproveReasonDesc}}-{{scope.row.notApproveSubReasonDesc}}</span>
          </template>
        </el-table-column>
        <el-table-column align="center" prop="rejectDay" :label="$t('auditDetail.no75')">
        </el-table-column>
        <el-table-column align="center" prop="remark" :label="$t('public.no37')">
        </el-table-column>
    </el-table>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        data:[],  
      }
    },
    methods: {
      detail() { // 获取用户详细数据列表
        this.$axios.post(this.$action.risk_approvePhone+this.$route.query.orderId).then(res => {
            if (res.code == 200) {
                this.data=res.data;
            } else {
                this.$globalMsg.error(res.message);
            }
        });
      },
      selLoan(orderId) { // 借款查询
        this.$router.push({
          path: '/loandetail',
          query: {
            orderId,
            userId: this.userId
          }
        });
      },
      back() { // 页面无数据时，点击返回
        window.history.go(-1);
      },
      moneyFormat(row, column) {
        return row.loanAmount + row.needRefundFee + row.currentInterest + row.overdueInterest
      },
    },
    mounted() {
      this.detail();
    }
  }
</script>
<style lang="scss" scoped>
.title{
    color:#1D7BFF;
    font-weight: bold;
    font-size: 14px;
}
</style>